<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.xq.shop.po.User"%>
<%@page import="com.xq.shop.util.Const"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	User user = (User) request.getSession().getAttribute(Const.User_Session);
%>
<div class="top_info">
	<div class="bar">
		<div class="login_info">
		<% if(user != null){ %>
			<span>Hi，</span>
			<a href="<%=basePath %>jsp/user/index.jsp"><%=user.getName() %></a>
			<a>积分<span>0</span></a>
			<a>消息<span>0</span></a>
			<a href="<%=basePath %>user/user_logout.do">[退出]</a>
		<% } else { %>
			<span>欢迎来友间茶社</span>
			<a href="<%=basePath %>jsp/user/login.jsp">[登录]</a>
			<a href="<%=basePath %>jsp/user/register.jsp">[注册]</a>
		<% } %>
		</div>
		<ul>
			<li class="item1">
				<span class="cart">购物车(</span><span>0</span><span>)</span><span></span>
			</li>
			<li class="item2">
				<a href="#">服务中心</a>
			</li>
		</ul>
	</div>
</div>
<div class="header">
	<div class="bar">
		<div class="logo"></div>
		<div class="search">
			<div class="text_wrap">
				<input type="text" class="search_value" />
				<button class="search_btn">
					搜索
				</button>
			</div>
			<div class="key"></div>
		</div>
		<div class="service">
			<div class="phone">
				客服热线
			</div>
			<div>
				<strong>0592-1111111</strong>
			</div>
		</div>
	</div>
	<div class="menu_bar bar">
		<ul>
			<li><a href="#">首页</a></li>
			<li><a href="<%=basePath%>jsp/product/product_list.jsp">铁观音</a></li>
			<li><a href="<%=basePath%>jsp/product/product_list.jsp">红茶</a></li>
			<li><a href="<%=basePath%>jsp/product/product_list.jsp">绿茶</a></li>
			<li><a href="<%=basePath%>jsp/product/product_list.jsp">茶礼订制</a></li>
			<li><a href="<%=basePath%>jsp/product/product_list.jsp">茶具</a></li>
		</ul>
	</div>
</div>